using System;
using System.Collections.Generic;
using System.Text;

namespace LiveStock
{
    public class CurrentUser
    {
        
        public int UserID;
        public string UserName;
        public string UserPassword;
        public string UserFullName;
        public int UserType;

        //This constructor is to be used only when coming from the Login Screen as a New User
        public CurrentUser(Boolean isAdmin)
        {
            UserID = -1;
            
            if (isAdmin == false)
            {                
                UserType = 1;
            }
            else
            {
                UserType = 0;
            }
        }


        public CurrentUser(int ID, string Name, string Pass, string FullName, int Type)
        {
            UserID = ID;
            UserName = Name;
            UserPassword = Pass;
            UserFullName = FullName;
            UserType = Type;
        }
    }
}
